import poplib


accounts = {"volny":["presovsky","...","pop3.volny.cz"],
            }

for k in accounts.keys():
    account, password, host = accounts[k]
    #print account, password, host

    pop = poplib.POP3(host)
    pop.user(account)
    pop.pass_(password)

    print "This mailbox has %d messages, totaling %d bytes." % pop.stat()

